package com.memory.modules.business.domain.sell;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @PackageName: com.memory.modules.business.domain.sell
 * @ClassName: InvoiceRecord
 * @Description:
 * @author: zhuguangxun
 * @date 2021/3/13
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "invoice_record")
@EntityListeners(AuditingEntityListener.class)
public class InvoiceRecord implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    private Long accountId;

    private String title;

    private String invoiceNo;

    private String email;

    private String phone;

    private String postCode;

    private String address;

    private Date createDate;
}
